package com.py.credit.dao;

import com.py.credit.entity.LhjcProcess;
import com.py.credit.entity.Template;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface SyslogDao {

    Template selectMbInfo(@Param(value = "id") int id);

    void addProcess(@Param(value = "ajbh") String ajbh,
                    @Param(value = "name") String name,
                    @Param(value = "status") String status,
                    @Param(value = "loginName") String loginName,
                    @Param(value = "realName") String realName,
                    @Param(value = "managerId") long managerId,
                    @Param(value = "deptId") long deptId);

    void addYcProcess(@Param(value = "ajbh") String ajbh,
                      @Param(value = "name") String name,
                      @Param(value = "status") String status,
                      @Param(value = "loginName") String loginName,
                      @Param(value = "realName") String realName,
                      @Param(value = "managerId") long managerId,
                      @Param(value = "deptId") long deptId,
                      @Param(value = "description") String description);

    List<LhjcProcess> getProcessList(@Param(value = "ajbh") String ajbh);

    Map<String, Object> selectDeptData(@Param(value = "sql") String sql,
                                       @Param(value = "ajbh") String ajbh);

    List<String> selectCurrentdeptCs(@Param(value = "ajbh") String ajbh,
                                     @Param(value = "deptId") long deptId);
}
